<p>Using upper case literal suffixes removes the potential ambiguity between "1" (digit 1) and "l" (letter el) for declaring literals.</p>
<h2>Noncompliant Code Example</h2>

<pre>
long long1 = 1l; // Noncompliant
float float1 = 1.0f; // Noncompliant
double double1 = 1.0d; // Noncompliant
</pre>
<h2>Compliant Solution</h2>

<pre>
long long1 = 1L;
float float1 = 1.0F;
double double1 = 1.0D;
</pre>
<h2>See</h2>

<ul>
<li> MISRA C++:2008, 2-13-4 - Literal suffixes shall be upper case
</li><li> MISRA C:2012, 7.3 - The lowercase character "l" shall not be used in a literal suffix
</li><li> <a href="https://www.securecoding.cert.org/confluence/x/koAtAQ">CERT DCL16-C</a> - Use "L," not "l," to indicate a long value
</li><li> <a href="https://www.securecoding.cert.org/confluence/x/n4AtAQ">CERT DCL16-CPP</a> - Use "L," not "l," to indicate a long value
</li></ul>
<h3>See Also</h3>

<ul>
<li> {rule:squid:S1129} - Long suffix "L" should be upper case
</li></ul>

